package cn.xscrum.demo.controller.showcontroller;

import cn.xscrum.demo.service.ICityTrackListService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/demo/show")
public class ShowController {
    private String prefix = "demo/show";

    @Autowired
    private ICityTrackListService cityTrackListService;

    @RequiresPermissions("demo:show:showXianwangOD")
    @GetMapping("/showXianwangOD")
    public String showOD()
    {
        return prefix + "/showXianwangOD";
    }

    @RequiresPermissions("demo:show:showXianwangkeliu")
    @GetMapping("/showXianwangkeliu")
    public String showXianwangkeliu()
    {
        return prefix + "/showXianwangkeliu";
    }


    @RequiresPermissions("demo:show:showSavetime")
    @GetMapping("/showSavetime")
    public String showSavetime()
    {
        return prefix + "/showSavetime";
    }

    @RequiresPermissions("demo:show:showXianwangIncreasement")
    @GetMapping("/showXianwangIncreasement")
    public String showXianwangIncreasement()
    {
        return prefix + "/showXianwangIncreasement";
    }



    @RequiresPermissions("demo:show:showRate")
    @GetMapping("/showRate")
    public String showRate()
    {
        return prefix + "/showRate";
    }
    @RequiresPermissions("demo:show:showFlowRate")
    @GetMapping("/showFlowRate")
    public String showFlowRate()
    {
        return prefix + "/showFlowRate";
    }
}
